package com.practice.JVM性能调优和调优工具测试;

/**
 * @program: tenghw-practice-demo
 * @author: tenghw
 * @create: 2024-08-17 18:21
 * @Version 1.0
 * @description:
 **/
public class Test1 {
    public static void main(String[] args) throws InterruptedException {
        Thread son1 = new Thread(() -> {
            while (true) {
                System.out.println("son1 run body");
            }
        }, "son1");
        System.out.println("main run start");
        son1.start();
        son1.join();
        System.out.println("main run end");
    }
}